/**
 * @author baz
 */
package bot.state {
import bot.*;

import lib.KeyboardManager;

public class BotStateHijack implements IBotState {
    private var view:BotView;

    public function BotStateHijack(botModel:BotView) {
        view = botModel;
    }

    public function init(... params):void {
    }

    public function frameHandler():void {
        // Ship rotation
        KeyboardManager.$.isDown(1102) && view.rotateClockWise();
        KeyboardManager.$.isDown(1073) && view.rotateAntiClockWise();
    }

    public function cleanUp():void {
    }
}
}
